home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / bbs_lord / lnet0331.zip / NON_FIDO.ZIP / HUBEVENT.BAT < prev    next >
DOS Batch File  |  1995-11-12  |  10KB  |  284 lines

  1. ECHO OFF
  2. CLS
  3.  
  4. rem **************************************************************
  5. rem
  6. rem This batch file compliments of Bob Miller on Cypress Lake BBS!
  7. rem If you like it, give us a call sometime BBS: 318-965-0307
  8. rem
  9. rem     FREEY GIVEN WITH NO WARRANTIES EXPRESSED OR IMPLIED
  10. rem       Basically, use this information at your own risk
  11. rem                        and ENJOY!
  12. rem
  13. rem
  14. rem           >>>>>   EDIT THIS FILE AS NEEDED  <<<<<<
  15. rem
  16. rem
  17. rem      This file is for the HUB or Main BBS.  It will create
  18. rem      the "packets" for each of the NODES or BBSs playing
  19. rem      the interbbs game.  
  20. rem
  21. rem      Although this file was written for use on a Wildcat BBS, it 
  22. rem      IS GENERIC and will work on ANY BBS with a DOS environment 
  23. rem      or DOS Shell including OS2 and Windows 95.
  24. rem
  25. rem      CHANGE:  You should edit this file to correctly show
  26. rem            the path(s) you have entered in your 'Local
  27. rem            Configuration'.  Also change the path for the   
  28. rem            File Location of the Upload/Download files for 
  29. rem            your other BBSs playing in the game.  Basically
  30. rem            follow the batch file and change paths as needed.
  31. rem            If you don't understand batch files or the DOS 
  32. rem            command line, you are in trouble and shouldnt attempt
  33. rem            being a HUB for all the other BBSs playing this game.
  34. rem          
  35. rem *************************************************************
  36.  
  37.  
  38. echo ************************************************************
  39. echo     Creating OUTBOUND PACKETS for each node to download
  40. echo     and for them to unzip into their  C:\LNET\TRANS  directory.
  41. rem  
  42. rem      BBS FILE AREA:
  43. rem      Define a BBS file area on your bbs for the callers to U/D Load
  44. rem      their daily packets.  You can also place the BBS play "Kits" there
  45. rem      The C:\LNPACKET directory is a File Upload/Download directory
  46. rem      I defined on my BBS for the incoming/outgoing packets. CHANGE 
  47. rem      C:\LNPACKET directory to match a BBS file area you setup for 
  48. rem      this purpose.
  49. rem 
  50. REM      BBS NODE NUMBERS:
  51. rem      Each BBS playing the in the game has their own
  52. rem      node number.  Change the node number(s) in this file
  53. rem      to match the node numbers you defined in the ALTERNATE
  54. rem      ADDRESS EDITOR under the Network Coordinator Menu.
  55. rem      Simply Add or Delete the lines below to match the number  
  56. rem      of nodes playing in this game.
  57. rem      
  58. rem      IMPORTANT:
  59. rem      Under the Alt Addr. Editor you will see node 02 is really
  60. rem      defined as 1:1/2 and node 03 is 1:1/3, etc.
  61. rem 
  62. echo ************************************************************
  63.  
  64. C:
  65. CD\LNET
  66. OUTBOUND
  67.  
  68. echo **************************************************************************
  69. echo             Creating New Packets for Playing BBS Sites
  70. rem
  71. rem This part is adding new attacks, score info., changes to the config.,
  72. rem new site additions, etc. to the packets to be sent to each BBS playing
  73. rem in the game.  It also does some checking to help prevent lost attacks!
  74. rem The creative batches below are looking to see if each site called and
  75. rem uploaded a packet, yesterday.  It is safe to assume (for the most part)
  76. rem that if they called and uploaded their packet, the also took their 
  77. rem packet yesterday.  We are looking for new packets from the playing BBSs
  78. rem and appending the ones who didnt upload.  We dont want to delete  the 
  79. rem packets until they have downloaded the previous packet.  We can con-
  80. rem tinue to "hold" the new attacks for the following day.  Encourage your
  81. rem playing BBSs to call *Everyday*.  This is a merely an attempt to backup
  82. rem packets so they can all be processed by all BBSs and reduce lost attacks.
  83. rem
  84. rem OH!  It is easier to "REM"ark out the unsed lines below and un"REM" them
  85. rem as needed than it is to  rewrite the entire section.  Simply add or remove
  86. rem the REM in from of each line to add or remove checking for the number of
  87. rem BBS nodes playing.  15 BBSs may play without adding more lines...  :)
  88. rem
  89. rem NOTE:  Always leave an extra  " :CHECKxx "  after checking the last node
  90. rem if you have 8 nodes playing, after checking node 8 for packets, you should
  91. rem have a line by itself that says...   :CHECK09   then the rest of the lines
  92. rem will have REM in from of them up through checking BBS site # 16.
  93. echo **************************************************************************
  94.  
  95. CD\LNPACKET
  96.  
  97. :CHECK02
  98. rem *************************************************************************
  99. rem  Let's check and see if we got a new packet from this node, last night.
  100. rem *************************************************************************
  101. IF EXIST C:\LNPACKET\LNET02OT.ZIP GOTO PACK02
  102. PKZIP -A LNET02IN.ZIP C:\LNET\TRANS\LN02*.*
  103. DEL C:\LNET\TRANS\LN02*.* 
  104. GOTO CHECK03
  105. :PACK02
  106. rem *************************************************************************
  107. rem  If the "PACK02" part below is run, it means we did get a packet from this
  108. rem  BBS last night.  We can save disk space and transfer time now by deleting
  109. rem  the old stuff they already have and making a fresh new packet for them.
  110. rem  The same process is used for each site/node in this game.
  111. rem ************************************************************************
  112. DEL LNET02IN.ZIP
  113. PKZIP LNET02IN.ZIP C:\LNET\TRANS\LN02*.* 
  114. DEL C:\LNET\TRANS\LN02*.* 
  115.  
  116. :CHECK03
  117. rem IF EXIST C:\LNPACKET\LNET03OT.ZIP GOTO PACK03
  118. rem PKZIP -A LNET03IN.ZIP C:\LNET\TRANS\LN03*.*
  119. rem DEL C:\LNET\TRANS\LN03*.* 
  120. rem GOTO CHECK04
  121. rem :PACK03
  122. rem DEL LNET03IN.ZIP
  123. rem PKZIP LNET03IN.ZIP C:\LNET\TRANS\LN03*.* 
  124. rem DEL C:\LNET\TRANS\LN03*.* 
  125. rem 
  126. rem :CHECK04
  127. rem IF EXIST C:\LNPACKET\LNET04OT.ZIP GOTO PACK04
  128. rem PKZIP -A LNET04IN.ZIP C:\LNET\TRANS\LN04*.*
  129. rem DEL C:\LNET\TRANS\LN04*.* 
  130. rem GOTO CHECK05
  131. rem :PACK04
  132. rem DEL LNET04IN.ZIP
  133. rem PKZIP LNET04IN.ZIP C:\LNET\TRANS\LN04*.* 
  134. rem DEL C:\LNET\TRANS\LN04*.* 
  135. rem 
  136. rem :CHECK05
  137. rem IF EXIST C:\LNPACKET\LNET05OT.ZIP GOTO PACK05
  138. rem PKZIP -A LNET05IN.ZIP C:\LNET\TRANS\LN05*.*
  139. rem DEL C:\LNET\TRANS\LN05*.* 
  140. rem GOTO CHECK06
  141. rem :PACK05
  142. rem DEL LNET05IN.ZIP
  143. rem PKZIP LNET05IN.ZIP C:\LNET\TRANS\LN05*.* 
  144. rem DEL C:\LNET\TRANS\LN05*.* 
  145. rem 
  146. rem :CHECK06
  147. rem IF EXIST C:\LNPACKET\LNET06OT.ZIP GOTO PACK06
  148. rem PKZIP -A LNET06IN.ZIP C:\LNET\TRANS\LN06*.*
  149. rem DEL C:\LNET\TRANS\LN06*.* 
  150. rem GOTO CHECK07
  151. rem :PACK06
  152. rem DEL LNET06IN.ZIP
  153. rem PKZIP LNET06IN.ZIP C:\LNET\TRANS\LN06*.* 
  154. rem DEL C:\LNET\TRANS\LN06*.* 
  155. rem 
  156. rem :CHECK07
  157. rem IF EXIST C:\LNPACKET\LNET07OT.ZIP GOTO PACK07
  158. rem PKZIP -A LNET07IN.ZIP C:\LNET\TRANS\LN07*.*
  159. rem DEL C:\LNET\TRANS\LN07*.* 
  160. rem GOTO CHECK08
  161. rem :PACK07
  162. rem DEL LNET07IN.ZIP
  163. rem PKZIP LNET07IN.ZIP C:\LNET\TRANS\LN07*.* 
  164. rem DEL C:\LNET\TRANS\LN07*.* 
  165. rem 
  166. rem :CHECK08
  167. rem IF EXIST C:\LNPACKET\LNET08OT.ZIP GOTO PACK08
  168. rem PKZIP -A LNET08IN.ZIP C:\LNET\TRANS\LN08*.*
  169. rem DEL C:\LNET\TRANS\LN08*.* 
  170. rem GOTO CHECK09
  171. rem :PACK08
  172. rem DEL LNET08IN.ZIP
  173. rem PKZIP LNET08IN.ZIP C:\LNET\TRANS\LN08*.* 
  174. rem DEL C:\LNET\TRANS\LN08*.* 
  175. rem 
  176. rem :CHECK09
  177. rem IF EXIST C:\LNPACKET\LNET09OT.ZIP GOTO PACK09
  178. rem PKZIP -A LNET09IN.ZIP C:\LNET\TRANS\LN09*.*
  179. rem DEL C:\LNET\TRANS\LN09*.* 
  180. rem GOTO CHECK10
  181. rem :PACK09
  182. rem DEL LNET09IN.ZIP
  183. rem PKZIP LNET09IN.ZIP C:\LNET\TRANS\LN09*.* 
  184. rem DEL C:\LNET\TRANS\LN09*.* 
  185. rem 
  186. rem :CHECK10
  187. rem IF EXIST C:\LNPACKET\LNET10OT.ZIP GOTO PACK10
  188. rem PKZIP -A LNET10IN.ZIP C:\LNET\TRANS\LN10*.*
  189. rem DEL C:\LNET\TRANS\LN10*.* 
  190. rem GOTO CHECK11
  191. rem :PACK10
  192. rem DEL LNET10IN.ZIP
  193. rem PKZIP LNET10IN.ZIP C:\LNET\TRANS\LN10*.* 
  194. rem DEL C:\LNET\TRANS\LN10*.* 
  195. rem 
  196. rem :CHECK11
  197. rem IF EXIST C:\LNPACKET\0NET11OT.ZIP GOTO PACK11
  198. rem PKZIP -A LNET11IN.ZIP C:\LNET\TRANS\LN11*.*
  199. rem DEL C:\LNET\TRANS\LN11*.* 
  200. rem GOTO CHECK12
  201. rem :PACK11
  202. rem DEL LNET11IN.ZIP
  203. rem PKZIP LNET11IN.ZIP C:\LNET\TRANS\LN11*.* 
  204. rem DEL C:\LNET\TRANS\LN11*.* 
  205. rem 
  206. rem :CHECK12
  207. rem IF EXIST C:\LNPACKET\LNET12OT.ZIP GOTO PACK12
  208. rem PKZIP -A LNET12IN.ZIP C:\LNET\TRANS\LN12*.*
  209. rem DEL C:\LNET\TRANS\LN12*.* 
  210. rem GOTO CHECK13
  211. rem :PACK12
  212. rem DEL LNET12IN.ZIP
  213. rem PKZIP LNET12IN.ZIP C:\LNET\TRANS\LN12*.* 
  214. rem DEL C:\LNET\TRANS\LN12*.* 
  215. rem 
  216. rem :CHECK13
  217. rem IF EXIST C:\LNPACKET\LNET13OT.ZIP GOTO PACK13
  218. rem PKZIP -A LNET13IN.ZIP C:\LNET\TRANS\LN13*.*
  219. rem DEL C:\LNET\TRANS\LN13*.* 
  220. rem GOTO CHECK14
  221. rem :PACK13
  222. rem DEL LNET13IN.ZIP
  223. rem PKZIP LNET13IN.ZIP C:\LNET\TRANS\LN13*.* 
  224. rem DEL C:\LNET\TRANS\LN13*.* 
  225. rem 
  226. rem :CHECK14
  227. rem IF EXIST C:\LNPACKET\LNET14OT.ZIP GOTO PACK14
  228. rem PKZIP -A LNET14IN.ZIP C:\LNET\TRANS\LN14*.*
  229. rem DEL C:\LNET\TRANS\LN14*.* 
  230. rem GOTO CHECK15
  231. rem :PACK14
  232. rem DEL LNET14IN.ZIP
  233. rem PKZIP LNET14IN.ZIP C:\LNET\TRANS\LN14*.* 
  234. rem DEL C:\LNET\TRANS\LN14*.* 
  235. rem 
  236. rem :CHECK15
  237. rem IF EXIST C:\LNPACKET\LNET15OT.ZIP GOTO PACK15
  238. rem PKZIP -A LNET15IN.ZIP C:\LNET\TRANS\LN15*.*
  239. rem DEL C:\LNET\TRANS\LN15*.* 
  240. rem GOTO CHECK16
  241. rem :PACK15
  242. rem DEL LNET15IN.ZIP
  243. rem PKZIP LNET15IN.ZIP C:\LNET\TRANS\LN15*.* 
  244. rem DEL C:\LNET\TRANS\LN15*.* 
  245. rem 
  246. rem :CHECK16
  247.  
  248. rem  ************************************************************
  249. rem  Add more packet checking here as in the above for more than
  250. rem  15 BBSs calling your Hub.  Leave the   :CHECK16  above this
  251. rem  line.   if you add more BBS nodes then make a  :CHECKxx
  252. rem  line after the last node similar to above.
  253. rem  ************************************************************
  254.  
  255.  
  256. echo ************************************************************
  257. echo    Taking INCOMING PACKETS from all BBSs playing the game 
  258. echo    and placing them in this Hubs C:\LNET\TRANS directory.
  259. echo ************************************************************
  260.  
  261. C: 
  262. CD C:\LNET\TRANS
  263. PKUNZIP -O C:\LNPACKET\LNET??OT.ZIP
  264. PKUNZIP -O *.Z??
  265. CD C:\LNET\DATA
  266. PKUNZIP -O C:\LNET\TRANS\*.Z?? *.DAT
  267. DEL C:\LNET\TRANS\U*.DAT
  268. DEL C:\LNET\TRANS\*.Z??
  269. DEL C:\LNPACKET\LNET??OT.ZIP
  270. CD C:\LNET
  271. INBOUND
  272.  
  273. echo ************************************************************
  274. echo        Now processing Daily Bulletins - Please wait.....
  275. rem     
  276. rem     Don't forget to edit your BULLITEN.CFG file for the correct
  277. rem     FILENAMES and their LOCATIONS....   :)
  278. echo ************************************************************
  279.  
  280. C:
  281. CD\LNET
  282. LORDNET BULL
  283. CD\BBS
  284.